@echo off
del winapi.dll
del winapi.obj
del winapi.tds
set OLDPATH=%Path%
set Path=%Path%;E:\4.Software\mingw64\bin
set JRE_PATH=E:\java\jdk\openjdk-1.8.0.282

gcc -I%JRE_PATH%/include -I%JRE_PATH%/include/win32 -shared -o winapi.dll winapi.cpp

SET Path=%OLDPATH%
SET OLDPATH=
pause